package uestc.lj.advanced.math;

/**
 * @Author:Crazlee
 * @Date:2021/12/9
 */
public class Code03_Nim {
	// 保证arr是正数数组
	public static void printWinner(int[] arr) {
		int eor = 0;
		for (int num : arr) {
			eor ^= num;
		}
		if (eor == 0) {
			System.out.println("后手赢");
		} else {
			System.out.println("先手赢");
		}
	}
}
